package com.fsy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fsy.entities.Netfollows;
import com.fsy.entities.Netfollows_export;
import com.fsy.service.NetfollowsService;
import com.fsy.mapper.NetfollowsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 凡凡
* @description 针对表【netfollows】的数据库操作Service实现
* @createDate 2022-04-29 11:18:39
*/
@Service
public class NetfollowsServiceImpl extends ServiceImpl<NetfollowsMapper, Netfollows>
    implements NetfollowsService{

    @Resource
    private NetfollowsMapper netfollowsMapper;

    @Override
    public List<Netfollows> selectAllByUserId(Netfollows netfollows) {
        netfollows.setPage((netfollows.getPage()-1)*netfollows.getLimit());
        return netfollowsMapper.selectAllByUserId(netfollows);
    }

    @Override
    public int getCount(Netfollows netfollows) {
        return netfollowsMapper.getCount(netfollows);
    }

    @Override
    public List<Netfollows_export> export(Netfollows netfollows) {
        return netfollowsMapper.export(netfollows);
    }
}




